package regexobject;

/**
 * @author Huangjin
 * @version 1.0
 * describe:String replace(String regex,String s):替换
 *  将当前字符串中满足正则表达式（regex）的部分给替换为指定的字符串（s）
 * @date 2023/3/1 10:41
 */
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line = "123456abc546defg64hi";
        line = line.replaceAll("[0-9]+","***");
        System.out.println(line);
    }
}
